Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed dark-theme toggle not working in legacy pages #128

Conversation

rehmansheikh222
Copy link

The dark theme toggle button was not working in the legacy pages because of the dark-theme.js file being executed twice as a VM file duplicate of dark-theme.js file is created by the browser so the event for onChange gets triggered twice. This PR puts a guard at the top of the file so that it only executes just once.
image

@regisb
Copy link
Contributor

regisb commented Feb 25, 2025

What's the reason for closing this PR?

@regisb regisb deleted the rehman/fix-dark-theme-legacy-pages branch February 25, 2025 07:45
@rehmansheikh222
Copy link
Author

What's the reason for closing this PR?

Hi @regisb , this PR was adding a guard to stop the dark theme file from executing twice. Later on, after debugging, I found out that the whole 'application' pipeline of js files was being imported twice in the instructor dashboard. So, I have opened a PR upstream on edx-platform to resolve this issue.
Here is the link to the PR: openedx/edx-platform#36289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Won't fix
Development

Successfully merging this pull request may close these issues.

2 participants